package com.lvyou.ctrl.mgr;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/mgr")
public class MgrLogoutCtrl {
    @RequestMapping("/doLogout")
    public String doLogout(HttpSession session){
        session.invalidate();
        session=null;
        return "redirect:/mgr/login.html";
    }
}
